package com.hyk.service;

import com.hyk.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyk.entity.response.MenuListResponse;
import com.hyk.entity.response.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyk
 * @since 2021-03-16
 */
public interface IMenuService extends IService<Menu> {

    void addMenu(Menu menu);

    List<MenuListResponse> selectMenu();

    List<Permission> getAllMenu();

    List<Menu> findMenuByRole(@Param("role") String role);
}
